<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$Charset}>">
<title>申请<{$sitename}>友情链接</title>
<meta name="Author" content="stevenchow811@163.com">
<meta name="generator" content="<{$UaVersion}>" />
<meta name ="keywords" content="友情链接,申请,申请<{$sitename}>友情链接">
<meta name="description" content="请填写资料申请<{$sitename}>的友情链接,我们会尽快和您取得联系."> 
<link href="<{$INC_PATH}>css/style.css" rel="stylesheet" type="text/css">
<style>
.site {
border-collapse:collapse; /* 关键属性：合并表格内外边框(其实表格边框有2px，外面1px，里面还有1px哦) */
border:solid #999; /* 设置边框属性；样式(solid=实线)、颜色(#999=灰) */
border-width:1px 1px 1px 1px; /* 设置边框状粗细：上 右 下 左 = 对应：1px 0 0 1px */
}
</style>
<script src="<{$JS_PATH}>js/prototype.js"></script>
<script>
function IsURL(urlString)
{
	regExp = /(?:(?:http[s]?|ftp):\/\/)?[^\/\.]+?\.[^\.\\\/]+?\.\w{2,}$/i;
	if (urlString.match(regExp))return true;
	else return false;
}
function check(){
	if($F('site_name')==""){
		alert("请输入您的网站名称");
		$('site_name').focus();
		return false;
	}
	if($F('site_email')==""){
		alert("请输入您的联系email");
		$('site_email').focus();
		return false;
	}
	if($F('site_url')==""){
		alert("请输入您的网址");
		$('site_url').focus();
		return false;
	}else if(!IsURL($F('site_url'))){
		alert("您输入的网址有误");
		$('site_url').focus();
		return false;
	}
	return true;
}
</script>
<{$xajax_javascript}>
<script language="javascript">
xajax_rebuildHTML("user/apply_friendlink.php");
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><{include file="`$ThemeName`/element.header.html"}></td>
  </tr>
</table>
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" class="corhui">&nbsp;<img src="<{$tpl_img_path}>default/star.gif" width="15" height="13" align="absmiddle">您当前位置：<a href="<{$SiteUrl}>"><{$sitename}></a> &gt; 申请友情链接</td>
  </tr>
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="center" valign="top">
    <td width="180" class="corhui"> 
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center"><table cellSpacing=0 cellPadding=0 width="100%" border=0>
              <tbody>
                <tr> 
                  <td><table height=30 cellSpacing=0 cellPadding=0 width=240 
                  background="<{$tpl_img_path}>default/pro_title01.gif" 
                  border=0>
                      <tbody>
                        <tr> 
                          <td width=190 height="18" class=font12white>&nbsp;<strong>&nbsp;网站合作联盟</strong></td>
                          <td width=50><a href="#"><img height=20 alt="" src="<{$tpl_img_path}>default/pro_title02.gif" width=41 border=0></a>
						  </td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
                <tr> 
                  <td class=td_01 vAlign=top height=200><{include file="market/industry.html"}></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
        <tr>
          <td>
          </td>
        </tr>
    </table></td>
    <td>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
        <tr>
        <td align="center">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">  
            <tr>
              <td height="12">
			  <table width="100%" border="1" cellspacing="0" cellpadding="0" class="site">
                    <tr>
                      <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
                        <tr>
                          <td colspan="2" align="center" class="font12yellow">请申请链接的同时做好本站的链接</td>
                        </tr>
                        <tr align="left" >
                          <td width="27%" class="corhui">本站名称：</td>
                          <td width="73%"class="corhui"><{$sitename}></td>
                        </tr>
                        <tr align="left">
                          <td class="corhui">本站地址：</td>
                          <td class="corhui"><{$SiteUrl}></td>
                        </tr>
                        <tr align="left">
                          <td class="corhui">网站logo图片</td>
                          <td class="corhui"><img src="<{$SiteUrl}>images/logo.gif" border="0" /></td>
                        </tr>
                        <tr align="left">
                          <td class="corhui">logo图片地址：</td>
                          <td class="corhui"><{$SiteUrl}>images/logo.gif</td>
                        </tr>
                        <tr align="left">
                          <td class="corhui">联系Email：</td>
                          <td class="corhui"><{$serviceemail}></td>
                        </tr>
                        <tr align="left">
                          <td class="corhui">网站描述：</td>
                          <td class="corhui"><{$SiteDescription}></td>
                        </tr>
                      </table></td>
                  </tr>
              </table>			  </td>
            </tr>
        </table>		
		</td>
      </tr>
      
        <tr>
          <td align="center" class="corhui">
           <table width="100%"  border="0" cellpadding="3" cellspacing="1" class="corblak">
              <tr align="center">
                <td class="corwhite">
				<form name="marketfrm" action="<{$smarty.server.PHP_SELF}>" method="post">
				<table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
                  <tr>
                    <td colspan="2" align="center"><span class="font14yellow"><strong>申请成为[<{$sitename}>]友情链接</strong></span></td>
                  </tr>
                  <tr align="left" >
                    <td width="27%" class="corhui">网站名称：</td>
                    <td width="73%"class="corhui"><input type="text" name="site[name]" id="site_name"><span class="fontred">*</span></td>
                  </tr>
                  <tr align="left">
                    <td class="corhui">网站地址：</td>
                    <td class="corhui"><input type="text" name="site[url]" id="site_url"><span class="fontred">*</span></td>
                  </tr>
                  <tr align="left">
                    <td class="corhui">联系Email：</td>
                    <td class="corhui"><input type="text" name="site[email]" id="site_email"><span class="fontred">*</span></td>
                  </tr>
                  <tr align="left">
                    <td class="corhui">网站描述：</td>
                    <td class="corhui"><textarea name="site[description]" id="site_description"></textarea></td>
                  </tr>
                  <tr align="left">
                    <td class="corhui">网站logo图片地址：</td>
                    <td class="corhui"><input type="text" name="site[logo]" id="site_logo"></td>
                  </tr>
                  <tr align="left">
                    <td colspan="2" class="corhui"><div align="center">
                      <input name="apply" type="submit" id="apply" value="提交申请" onclick="return check();">
                    </div></td>
                  </tr>
                  <tr>
                    <td height="20" colspan="2" align="center">&nbsp;</td>
                  </tr>
                </table>
				</form>
				</td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="20" align="center">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><{include file="`$ThemeName`/element.foot.html"}></iframe></td>
  </tr>
</table>
</body>
</html>